/*
	api统一的管理
*/
import {post,get} from '@/utils/request.js'
// 密码登录
export const login = (data) => post('/member/login', data)

// 验证码登录
export const loginByCode = (data) => post('/member/loginByCode', data)

// 发送验证码
export const sendcode = (data) => post('/member/sendcode', data)

//会员注册手机号
export const regByCode = (data) => post('/member/regByCode', data)

//会员注册
export const reg = (data) => post('/member/reg', data)

//获取楼栋数据
export const building = (data) => get('/user/building/list', data)

//获取居民信息
export const userinfotype = (data) => get('/user/userinfotype/list', data)

//获取房间
export const houseList = (data) => get('/user/houses/list', data)

//房屋认证 添加居民
export const userinfo = (data) => post('/user/userinfo/add', data)

//获取新闻列表
export const newsList = (data) => get('/user/news/list', data)

//获取商家列表
export const storesList = (data) => get('/user/stores/list', data)

//获取单挑公告信息
export const newsGet = (data) => get('/user/news/get', data)

//获取单挑门店信息
export const storesGet = (data) => get('/user/stores/get', data)